package io;

public class TryCatchDemo {
    public static void main(String[] args) {
        System.out.println("开始了");
        try {
            String l = "abc";
            System.out.println(Integer.parseInt(l));
            int[] arrays = new int[]{1,2,3};
            System.out.println(arrays.length);

        }catch (Exception e){
            System.out.println("出现了异常并解决了");
        }
        System.out.println("程序结束了");
    }
}
